package com.azure.jvm;

import java.util.ArrayList;
import java.util.List;

/**
 * 测试堆的增长  eden s1 s2
 * jvisualvm
 * 给jvisualvm安装VisualGC插件
 */
public class HeapTest {
    byte[] a = new byte[1024*100]; // 100kb
    public static void main(String[] args) throws InterruptedException {
        List<HeapTest> heapTests = new ArrayList<>();
        while (true){
            heapTests.add(new HeapTest());
            Thread.sleep(100);

        }
    }
}
